﻿using System.Collections.Generic;

namespace InternetSpiderLib.Scenes.Filters
{
    /// <summary>
    /// 顺序过滤器
    /// </summary>
    public class SequenceSceneFilter : ListSceneFilter
    {
        public override bool Filter(DataBox data)
        {
            foreach (var item in ChildFilter)
            {
                if (!item.Filter(data))
                    return false;
            }

            return true;
        }
    }
}
